﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wcf.InterFace;
using System.ServiceModel.Web;

namespace Wcf.ServiceControl
{
    public class ServerOne : IServerOne
    {

        [WebInvoke(
            BodyStyle = WebMessageBodyStyle.WrappedRequest,
            ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json, Method = "PSOT")]
        public string getMsg()
        {
            return "" + DateTime.Now.ToString();
        }
    }
}
